package com.lazily.string_;


/**
 * @Author:  GZQ
 * @date:  2025/3/9 23:08
 * @description: 字符串特性说明 -- 练习3
 */

public class StringExercise07 {

}

class Test1 {
	String str = new String("hello");
	final char[] ch = {'j', 'a', 'v', 'a'};
	public void change(String str, char[] ch) {
		str = "java";
		ch[0] = 'l';
	}

	// 程序入口
	public static void main(String[] args) {
		Test1 ex = new Test1();
		ex.change(ex.str, ex.ch);
		System.out.print(ex.str + " and ");
		System.out.println(ex.ch);
	}
}
